STEP 11: As we cycle through each row, we need to cycle through each column.

A nested loop is a loop that runs inside another loop. We use these to iterate through 2D lists.

  • In , drag Loop through List indented inside your last loop.
  • Then, change the variable value to column and the list we're looping through from my_list to row.
  • In GRAPHICS and , drag Square into your for loop. It should be indented twelve spaces.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)